﻿/*-------------------------------------------------------------------------
* 命名空间: ScreenCapture.ValueConverters/GetTypeConverter
* 类       名: GetTypeConverter
* 功      能:  获取类型的名称的转换类
* 时      间:  2023/12/4 17:08:14
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScreenCapture.ValueConverters
{
    public class GetTypeConverter : OneWayConverter
    {
        public override object Convert(object Value, Type TargetType, object Parameter, CultureInfo Culture)
        {
            return Value?.GetType() ?? TargetType;
        }
    }
}
